<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <jsp:useBean id="selectHomeworkForm" scope="session"
	class="mypack.form.SelectHomeworkForm" />
<jsp:useBean id="selectHomeworkAction" scope="session"
	class="mypack.action.SelectHomeworkAction" />
<jsp:useBean id="homeworkListVo" scope="session"
	class="mypack.vo.QueryHomeworkVo" />
    <%
selectHomeworkForm.setParameters(request, response);
%>
<%
selectHomeworkAction.service(request, response, selectHomeworkForm,
		homeworkListVo);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<table border="1" width="100%" >
	<tr>
			<td width="20%">作业名称</td>
			<td width="50%">作业要求</td>
			<td>详情</td>
		</tr>
		<%
		if(homeworkListVo.getHomework().size()== 0){
			
		
		%>
		<tr>
			<td>查无此作业</td>
		   </tr>
		   <%
		   }%>
		<%
			for (int i = 0; i < homeworkListVo.getHomework().size(); i++) {
		%>
		<tr>
			<td><%=homeworkListVo.getHomework().get(i).getHname()%></td>
			<td><%=homeworkListVo.getHomework().get(i).getHreq()%></td>
			<%int j = i + 1; %>
			<td><a href="newUp.jsp?hname=<%="000"+j%>">提交</a></td>
			
			
		</tr>
		<%
			}
		%>
	</table>
</body>
</html>